package com.yuhanginfo.modules.web.dao;


import com.yuhanginfo.common.persistence.CrudDao;
import com.yuhanginfo.common.persistence.annotation.MyBatisDao;
import com.yuhanginfo.modules.web.entity.WebYongUser;


/**
 * 门店管理DAO接口
 * @author yangs
 * @version 2017-09-13
 */
@MyBatisDao
public interface WebYongUserDao extends CrudDao<WebYongUser> {

	/**
	 * 根据登录名称查询用户
	 * @param loginName
	 * @return
	 */
	public WebYongUser getByLoginName(WebYongUser entity);

	/**
	 * 根据邮箱查询用户
	 */
	public WebYongUser getByEmail(WebYongUser entity);
	
	/**
	 * 根据电话查询用户
	 */
	public WebYongUser getByMobile(WebYongUser entity);

	/**
	 * 根据联系人邮箱查询用户
	 */
	public WebYongUser getByLinkmanEmail(WebYongUser entity);
	
	public WebYongUser getByLinkmanPhone(WebYongUser entity);
	/**
	 * 根据电话修改密码
	 */
	public int updatePasswordByMobile(WebYongUser entity);

	
	public WebYongUser getByLinkmanMobile(WebYongUser entity);
	

}